<!--header str-->
{template "common","header"}
<!--header end-->
<script type="text/javascript" src="{JS_PATH}jquery.form.min.js"></script>
<script type="text/javascript" src="{JS_PATH}formvalidator.js" charset="UTF-8"></script>
<script type="text/javascript" src="{JS_PATH}formvalidatorregex.js" charset="UTF-8"></script>
<script type="text/javascript" src="{JS_PATH}layer/layer.min.js"></script>
<style>
    .btn{position: relative;overflow: hidden;margin-right: 4px;display:inline-block;
        *display:inline;padding:4px 10px 4px;font-size:14px;line-height:18px;
        *line-height:20px;color:#fff;
        text-align:center;vertical-align:middle;cursor:pointer;background:#5bb75b;
        border:1px solid #cccccc;border-color:#e6e6e6 #e6e6e6 #bfbfbf;
        border-bottom-color:#b3b3b3;-webkit-border-radius:4px;
        -moz-border-radius:4px;border-radius:4px;}
    .btn input{position: absolute;top: 0; right: 0;margin: 0;border:solid transparent;
        opacity: 0;filter:alpha(opacity=0); cursor: pointer;}
    .progress{position:relative; margin-left:100px; margin-top:-24px;
        width:200px;padding: 1px; border-radius:3px; display:none}
    .bar {background-color: green; display:block; width:0%; height:20px;
        border-radius:3px; }
    .percent{position:absolute; height:20px; display:inline-block;
        top:3px; left:2%; color:#fff }
    .files{height:22px; line-height:22px; margin:10px 0}
    .delimg{margin-left:20px; color:#090; cursor:pointer}
	.job_list_nav { width:100%;height:45px; line-height:45px; clear:both;}
	.job_list_nav a{ display:inline-block; width:100px; height:35px; text-align:center; color:#fff; background-color:#00b4e6; line-height:35px;} 
</style>

<!--wrap_activity str-->
<div class="wrap" id="wrap">
    <table>
        <tr>
            <td class="item_table_left">
                <br/><br/>
                {template "common","left_menu"}
            </td>
            <td class="item_table_right">
                <div class="wrap_main">
                    <div class="bullet more_height">
                        <div class="bullet_title"><label class="user_detail_title heiti">招聘管理</label></div>
                        <div class="bullet_menu more_bottom">
                            <label class="user_detail_menu">&lt;&lt;招聘列表</label>
                        </div>
                    </div>
                    <hr>
                    <div class="content_title"></div>
                    <div class="content">
                    <div class="job_list_nav"><a href="/index.php?m=hchhr&c=position&a=publish" target="_blank">发布新职位</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="/index.php?m=hchhr&c=position&a=publish">应聘者列表</a> 
</div>
						<table width="800" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#dddddd">
  <tr style="background-color:#eeeeee;">
    <td width="229" height="35" align="center"><strong>招聘职位</strong></td>
    <td width="99" align="center"><strong>招聘人数</strong></td>
    <td width="229" align="center"><strong>工作地点</strong></td>
    <td width="99" align="center"><strong>状态</strong></td>
    <td width="138" align="center"><strong>管理</strong></td>
  </tr>
  {loop $lists $r}
  <tr style="background-color:#ffffff;">
    <td height="40" style="padding-left:10px;"><a href="/index.php?m=hchhr&c=position&a=publish&jobid={$r[id]}" target="_blank">{$r[job_name]}</a></td>
    <td align="center">{$r[number]}</td>
    <td align="center">{$r[province]}{$r[city]}</td>
    <td align="center">{if $r[is_show]==0}已关闭{else}招聘中{/if}</td>
    <td align="center"><a href="/index.php?m=hchhr&c=position&a=publish&jobid={$r[id]}">编辑</a>&nbsp;&nbsp;&nbsp;&nbsp;{if $r[is_show]==0}<a href="/index.php?m=hchmember&c=detail&a=job_list&action=update&jobid={$r[id]}&is_show=1">开启</a>{else}<a href="/index.php?m=hchmember&c=detail&a=job_list&action=update&jobid={$r[id]}&is_show=0">关闭</a>{/if}&nbsp;&nbsp;&nbsp;&nbsp;<a onclick="if(confirm('确认要删除吗？')){return true;} else {return false;}" href="/index.php?m=hchmember&c=detail&a=job_list&action=del&jobid={$r[id]}">删除</a></td>
  </tr>
  {/loop}
</table>
                    </div>
                </div>
            </td>
        </tr>
    </table>
</div>
<!--wrap end-->
<!--footer str-->
{template "common","footer"}
<!--footer end-->
<script type="text/javascript">
    if( !('placeholder' in document.createElement('input')) ){

        $('input[placeholder],textarea[placeholder]').each(function(){
            var that = $(this),
                    text= that.attr('placeholder');
            if(that.val()===""){
                that.val(text).addClass('placeholder');
            }
            that.focus(function(){
                if(that.val()===text){
                    that.val("").removeClass('placeholder');
                }
            })
                    .blur(function(){
                        if(that.val()===""){
                            that.val(text).addClass('placeholder');
                        }
                    })
                    .closest('form').submit(function(){
                        if(that.val() === text){
                            that.val('');
                        }
                    });
        });
    }

</script>

</body>
</html>